const USER = "username";

const userNameApi = {
  // 保存jwt
  save(username) {
    sessionStorage.setItem(USER, username);
  },
  // 获取jwt
  get() {
    return sessionStorage.getItem(USER);
  },
  // 清除jwt
  remove() {
    sessionStorage.removeItem(USER);
  },
};


export default userNameApi;